<template>
  <div class="z-mask"
       :style="{ 'z-index': zIndex }" />
</template>

<script>
export default {
  name: 'ZMask',
  props: {
    zIndex: {
      type: Number,
      default: 0
    }
  }
}
</script>

<style lang="less" scoped>
.z-mask {
  background: black;
  opacity: 0.5;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
</style>
